package com.wwl.springcloud.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/8/23 11:08
 * @description:
 */
@Data
public class Order implements Serializable {


    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 产品id
     */
    private Long productId;

    /**
     * 数量
     */
    private Integer count;

    /**
     * 金额
     */
    private Integer money;

    /**
     * 订单状态：0：创建中; 1：已完结
     */
    private Integer status;

}
